package utfpr.gang5.hermes.controledepresenca.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Usuario implements Serializable {

	// public static final int ALUNO = 1;
	// public static final int PROFESSOR = 2;
	// public static final int ADMIN = 3;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	private Long id;
	@Column(length = 30, unique = true)
	private String username;
	@Column(length = 30)
	private String senha;
	private boolean root;

	// @Column(length=80)
	// private String nome;
	// @Column(length=100)
	// private String email;

	// /**
	// * USUARIO ou PROFESSOR
	// */
	// private int perfil;

	public Usuario() {

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

	public void setRoot(boolean root) {
		this.root = root;
	}

	public boolean isRoot() {
		return root;
	}


}
